﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Eg.Core" namespace="Eg.Core">
    <class name="Users" table="Users">
        <id name="UserId">
            <generator class="identity"/>
        </id>
        <property name="UserName" type="string"/>
        <property name="CreateTime" type="DateTime"/>
        <property name="Password" type="string"/>
        <one-to-one class="UserDetail" name="Detail" lazy="proxy" cascade="all" property-ref="Users"/>
    </class>
</hibernate-mapping>
